package com.cloud;

import com.cloud.fork.controller.ForkController;
import com.cloud.registar.TestBean;
import com.cloud.registar.TyAnno;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.stereotype.Component;

//@ComponentScans({@ComponentScan("com.cloud.sourceload.gupao"),
//        @ComponentScan("com.cloud.fork")})
@TyAnno
@SpringBootApplication
public class DemoApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(DemoApplication.class, args);
        ForkController bean = run.getBean(ForkController.class);
        System.out.println(bean);
    }
}
